package com.hanson.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanson.entity.UserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserBean record);

    int insertSelective(UserBean record);

    UserBean selectByPrimaryKey(Integer id);

    UserBean selectByOpenId(@Param("openId") String openId);

    UserBean selectByOpenIdOld(@Param("openId") String openId);

    int updateOldSync(@Param("isSync") Integer isSync, @Param("id") Integer id);

    Integer countByOpenId(@Param("openId") String openId);

    UserBean selectByMpOpenId(@Param("mpOpenId") String mpOpenId);

    UserBean selectByMaOpenId(@Param("maOpenId") String maOpenId);

    int updateByPrimaryKeySelective(UserBean record);

    int updateByPrimaryKey(UserBean record);

    List<UserBean> selectByUserNameAndPwd(@Param("userName") String userName, @Param("pwd") String pwd);

    List<UserBean> listUsers(Page<UserBean> page, @Param("userBean") UserBean userBean);

    List<UserBean> listUsersAll(@Param("userBean") UserBean userBean);

    List<UserBean> getAll();

    int statisUser(@Param("type") int type);

    List<UserBean> getAllPartner();

    int updateBestTeam(@Param("bestTeam") Integer bestTeam, @Param("id") Integer id );
}